package com.lesserpand.lspand.story.item.service;

import io.searchbox.client.JestResult;

/**
 * @author bailuo
 * @version 2.0
 * @Description TODO
 * @Date Created in 2018/11/24 14:15
 */
public interface NewInfoService {

    <T> JestResult save(String index, String type, T o);

    <T> T getById(String index, String type, T o, String id);

    JestResult deleteById(String index, String type, String id);

    JestResult update(String index, String type, String data, String id);
}
